import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'// 用户信息
import permission from './modules/permission'// 处理动态路由
import commonData from './modules/commonData'// 

Vue.use(Vuex)

const state = {
  isPractice: false
}

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    permission,
    commonData
  },
  getters,
  state
})

export default store
